﻿var services = services || {};
services.serviceApp = angular.module('app.service', []);
services.serviceApp.
factory('schoolService', ['$http', function ($http) {
    var schoolService = {};

    schoolService.Get = function (url) {
        return $http({
            method: 'GET',
            url : url
        });
    };

    schoolService.Post = function (url, data) {
        return $http({
            method: 'POST',
            url: url,
            data: data
        });
    };

    return schoolService;
}])